/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.beans;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author pguerreroj
 * CREATE TABLE Reparacio (
    OrdreReparacio integer NOT NULL,
    IdCapTaller integer NOT NULL,
    Acceptada boolean DEFAULT false NOT NULL,
    IdMecanic integer NOT NULL,
    Assignada boolean DEFAULT false NOT NULL,
    Comptador double precision,
    Observacions character varying(500),
    NumCom integer NOT NULL,
    DataAssignacio date,
    DataInici date,
    DataFi date
    );
 */
public class ReparacioMecanic implements Serializable {
    
    private static final long serialVersionUID = 1L;
    private Reparacio reparacio;
    private Vehicle vehicle;
    private Client cliente;
    private List<StockPeca> piezas;
    public ReparacioMecanic() {
    }

    public ReparacioMecanic(Reparacio ReparacioRow, Vehicle vehicleRow) {
        this.reparacio=ReparacioRow;
        this.vehicle=vehicleRow;
        this.cliente=new Client();
        this.piezas=new ArrayList<StockPeca>();
    }
    public ReparacioMecanic(Reparacio ReparacioRow, Vehicle vehicleRow,Client cli,List<StockPeca> stoc) {
        this.reparacio=ReparacioRow;
        this.vehicle=vehicleRow;
        this.cliente=cli;
        this.piezas=stoc;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Reparacio getReparacio() {
        return reparacio;
    }
  public void setReparacio(Reparacio r) {
        this.reparacio=r;
    }
    public Vehicle getVehicle() {
        return vehicle;
    }
 public void setVehicle(Vehicle v) {
        this.vehicle=v;
    }
   public Client getClient() {
        return cliente;
    }
   
   
  public void setCliente(Client c) {
        this.cliente=c;
    }
  
   public List<StockPeca> getStockPeces() {
        return piezas;
    }
  public void setStockPeces(List<StockPeca> p) {
        this.piezas=p;
    }
}
